from flask import Flask, render_template, request, jsonify, flash, redirect, url_for, session, send_from_directory
import sys
app = Flask(__name__)
sys.path.append("../../..")
@app.route('/')
def start_web():
    # if session.get('admin', None) is None:
    #     return redirect(url_for("login"))
    # json_path = config.path + "index_data.json"
    # profit = {}
    # if os.path.exists(json_path):
    #     with open(json_path) as fp:
    #         profit = json.load(fp)
    profit = 13
    return render_template('index.html', profit=profit)



def start_app():
    app.run(threaded=True, host='0.0.0.0', port=8005)




if __name__ == '__main__':


    start_app()